1. Docker Container Restart policy
The restart policy for Docker containers is a start-up strategy for production environments that can be ignored during the development process.
Docker container restarts are done by the Docker da
Dockerstart: Start one or many containers that have been stoppedDocker stop: Stop a running containerDocker restart : Restart containerGrammar:Docker start [OPTIONS] CONTAINER [CONTAINER ...] Docker stop [OPTIONS] CONTAINER [CONTAINER ...] Docker restart [OPTIONS] CONTAINER
#!/bin/bashif[-z$1];thenecho "Usage: crunThis article is from the "my operation and maintenance of the road" blog, declined reprint!Docker container Restart script
By default,the memory recycling mode of the. NET Core app is server mode, in which case the memory footprint is related to the number of server cores, with a large half occupancy. Our applications currently have little throughput and can use the workstation mode, which reduces memory consumption. Configuration method :
find the corresponding item in VS and select Edit with Mail
Add the following options
Save
For details, refer to:
Https://support.discoun
enabled to support the restart of DNS when Docker run []string//docker uses the DNS server address Dnssearch []string//docker uses the specified DNS lookup domain name mirrors []string//Specified priority Docker registry mirror Enableipta bles BOOL//Enable
Diff
Export
Images
Import/save/load
Inspect
Kill
Port
Pause/unpause
Ps
Rm
Rmi
Run
Start/stop/restart
Tag
Top
Wait
Log information related
Events
History
Logs
Docker Hub Service Related
Login
Pul
dockerfileCommit Create a new image from a container ' s changesImages List ImagesLoad load an image from a tar archive or STDINPull pull an image or a repository from a registryPush push an image or a repository to a registryRMI Remove one or more imagesSearch Search the Docker Hub for imagesTag tag an image into a repositorySave save one or more images to a tar archive (streamed to STDOUT by default)History shows the history of a mirrorInspect get
search the Docker Hub for images tag tag an image into a repository save one or more images to a tar archive (streamed to STDOUT by default) history show the history of a Mirror Insp ECT get the details of the mirror container and the lifecycle operations it applies to: create Create a new container (creating a container) kill kill one or more running Containers Insp
ECT return low-level information on a container, image or task pause pause all proc
sometimes difficult to pull mirrors from the Docker Hub at home, so you can configure the Mirror accelerator. The official Docker and many domestic cloud service providers provide domestic accelerator services, such as:The official Docker offers the Chinese registry mirror https://registry.docker-cn.comSeven Qiniu accelerator https://reg-mirror.qiniu.com/When yo
/sysconfig/docker
Specify the configuration file load path to the configuration file created in the first step/etc/sysconfig/docker
Restart the Docker daemon
sudo systemctl stop Dockersudo systemctl start Docker
Check that the configuration is in effect
Ps-ef|grep
Previous article Docker (iv): Docker Compose of the Three Musketeers introduces Docker Compose, this article we'll look at Docker machine.About Docker MachineDocker Machine is one of the official Docker orchestration (Orchestratio
two steps, you can install the Docker through the agent in the intranet.
Configure Docker
Open Docker remote management port 2375 and configure the Docker hub domestic warehouse.
1. New Docker configuration file
Vim/etc/sysconfig/do
launched container# docker Ps-a : List all container(including history, running container)# docker Ps-q : List The last run of Containeridactions for the container:# docker start/stop/restart: Open / stop / restart container# docker
Docker tips and Common commands and docker tipsInstall docker
Check whether the curl package is installed?which curl
If curl is not installed, update the apt source and install curl as follows:apt-get updateapt-get install curlapt-get updatewget -qO- https://get.docker.com/ | sh
Set the current user as the docker u
Docker accelerator
you can use the following script to add the mirror configuration to the Docker daemon startup parameters.
echo "docker_opts=\"--registry-mirror=https://pee6w651.mirror.aliyuncs.com\ "| sudo tee-a/etc/default/docker
sudo service docker restart
Centos
In
command prints Docker every second, using Docker logs to see the results of the output. If you do not name the job, the job will be assigned an ID, and later use of commands such as Docker logs to view the log will become more cumbersome.Run the Docker logs command to see the current status of the job:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.